<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/webjars/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <form action="/add" method="post">
        <input type="hidden" name="id" th:value="${book.id}" >
        名称：<input type="text" th:value="${book.name}" name="name" ><br />
        价格：<input type="text" th:value="${book.price}" name="price"><br />
        类目：<input type="text" th:value="${book.category}" name="category"><br />
        库存：<input type="text" th:value="${book.pnum}" name="pnum"><br />
        图片：<input type="text" th:value="${book.imgurl}" name="imgurl" ><br />
        说明：<input type="text" th:value="${book.description}" name="description"><br />
        作者：<input type="text" th:value="${book.author}" name="author"><br />
        <input type="submit" value="添加">
    </form>
</body>
</html>